#include "Blocks/FoodBlock.h"
#include "Blocks/SoilBlock.h"

using namespace PocketSurvival::Engine;

namespace PocketSurvival
{
    FoodBlock::FoodBlock(int32_t rottenValue) : m_rottenValue(rottenValue)
    {
        addInheritance(this);
    }

    int32_t FoodBlock::getDamageDestructionValue(int32_t value)
    {
        return m_rottenValue;
    }

    int32_t FoodBlock::compostValue = Terrain::MakeBlockValue(SoilBlock::Index(), 0, SoilBlock::SetHydration(SoilBlock::SetNitrogen(0, 1), false));
} // namespace PocketSurvival

